﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;
namespace BUS
{
    public class THELOAISACHBUS
    {
        public string laytentheloai(string matheloai)
        {
            THELOAISACHDAO tlsDAO = new THELOAISACHDAO();
            return tlsDAO.laytentheloai(matheloai);
        }

        public int update(string sql, DataTable datatable)
        {
            THELOAISACHDAO tlsDAO = new THELOAISACHDAO();
            return tlsDAO.update(sql, datatable);
        }

        public int Themtheloai(THELOAISACHDTO tlsDTO)
        {
            THELOAISACHDAO tlsDAO = new THELOAISACHDAO();
            int kq = tlsDAO.Themtheloai(tlsDTO);
            return kq;
        }

        public DataTable Loadtheloaisach()
        {
            DataTable datatble = new DataTable();
            THELOAISACHDAO tlDAO = new THELOAISACHDAO();
            datatble = tlDAO.Loadtheloaisach();
            return datatble;
        }
    }
}
